export default class Assert{
    constructor(cx){
        this.cx=cx;
    }

    notNull(...args){
        for (let a of args){
            if (a==null){
                this.cx.fail('缺少参数')
            }
        }
    }

    notEmpty(...args){
        for (let a of args){
            if (a==null||a===''){
                this.cx.fail('缺少参数')
            }
        }
    }
}